<?//顺序是固定的，先连接数据库是最优先的。config中有很多设置，是要用到函数的?>
<?php include_once ("../connection.php");?>
<?php include_once ("../config.php");?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include_once (THEME_PATH_."/controller/introduce-detail.php"); ?>
    <?php include 'modules/head.php'; ?>
    <link href="/front/<?php echo $theme_folder ?>/assets/css/theme/pages/product.css" rel="stylesheet" type="text/css" />
</head>






<body class="<?echo $system_part ?>-<?echo $system_part_level ?>">
<?php include 'modules/topbar.php'; ?>
<?php include 'modules/menu.php'; ?>
<?php include 'modules/banner.php'; ?>





<!--container/main-->
<div class="container">
    <div class="main">
        <!--container/main-->



        <div class="location">
            <?php include 'modules/location-detail.php'; ?>
        </div>


        <div class="head">
<!--            <div class="bg" ><span style=";">--><?//echo $data['page']['name']?><!--</span></div>-->
            <div class="subtitle"><?echo $data['page']['subtitle']?></div>
            <h1><?echo $data['page']['name']?><hr/></h1>
        </div>



        <div class="box">




            <div class="detail-banner"><img src="/uploadfiles/<?echo $theme_folder."/".$data['now_detail']['banner']?>" alt=""/></div>


            <div class="images">
                <h2>相册</h2>
                <ul>
                    <li><img src="/uploadfiles/<?echo $theme_folder."/".$data['now_detail']['icon']?>" alt=""/></li>
                    <li><img src="/uploadfiles/<?echo $theme_folder."/".$data['now_detail']['image1']?>" alt=""/></li>
                    <li><img src="/uploadfiles/<?echo $theme_folder."/".$data['now_detail']['image2']?>" alt=""/></li>
                    <li><img src="/uploadfiles/<?echo $theme_folder."/".$data['now_detail']['image3']?>" alt=""/></li>
                    <li><img src="/uploadfiles/<?echo $theme_folder."/".$data['now_detail']['image4']?>" alt=""/></li>
                    <li><img src="/uploadfiles/<?echo $theme_folder."/".$data['now_detail']['image5']?>" alt=""/></li>
                    <li><img src="/uploadfiles/<?echo $theme_folder."/".$data['now_detail']['image6']?>" alt=""/></li>
                    <li><img src="/uploadfiles/<?echo $theme_folder."/".$data['now_detail']['image7']?>" alt=""/></li>
                    <li><img src="/uploadfiles/<?echo $theme_folder."/".$data['now_detail']['image8']?>" alt=""/></li>
                    <li><img src="/uploadfiles/<?echo $theme_folder."/".$data['now_detail']['image9']?>" alt=""/></li>
                </ul>
            </div>



            <div class="function">
                <h2>互动功能</h2>
                <ul>
                    <li><a href="#message_book"> 咨询留言</a></li>
                    收藏   点赞</ul>
            </div>



            <div class="data">
            <h2>资料</h2>

                <div>型号：<?echo $data['now_detail']['model']?></div>
                <div>简介：<?echo $data['now_detail']['introduce']?></div>
                <div>名称：<?echo $data['now_detail']['name']?></div>
                <div>副标题：<?echo $data['now_detail']['subtitle']?></div>
                <div>库存：<?echo $data['now_detail']['stock']?></div>
                <div>产地：<?echo $data['now_detail']['local']?></div>
                <div>点击数：<?echo $data['now_detail']['clickrate']?></div>
                <div>输入时间：<?echo $data['now_detail']['inputtime']?></div>
                <div>附件：<?echo $data['now_detail']['attachment']?></div>
                <div>喜欢：<?echo $data['now_detail']['negative']?></div>
                <div>讨厌：<?echo $data['now_detail']['positive']?></div>
                <div>英文名：<?echo $data['now_detail']['en_name']?></div>
                <div>短简介：<?echo $data['now_detail']['short_desc']?></div>
                <div>二维码：<?echo $data['now_detail']['erweima']?></div>

                <!--content-->
            </div>








            <div class="content">
                <h2> 详情</h2>
                    <? echo $data['now_detail']['detail'] ?>
            </div>


<!--box-->
</div>




            <div class="pre-and-next">
                <? if ($data['next_detail']['nid']){?>
                <a class="pre-item" href="<?echo $data['next_detail']['url']?>.html" >
                    <span>上一篇：</span>
                    <span class="item-img" style="background-image: url(/uploadfiles/<?echo $theme_folder?>/<?echo $data['next_detail']['icon']?>);"></span>
                    <h5 class="els2"><?echo $data['prev_detail']['name']?></h5>
                </a>
                <?}?>

                <? if ($data['prev_detail']['nid']){?>
                <a class="next-item" href="<?echo $data['prev_detail']['url']?>.html">
                    <span>下一篇：</span>
                    <span class="item-img" style="background-image: url(/uploadfiles/<?echo $theme_folder?>/<?echo $data['prev_detail']['icon']?>);"></span>
                    <h5 class="els2"><?echo $data['next_detail']['name']?></h5>
                </a>
                <?}?>

            </div>








        <?php include 'modules/product-recommend-list.php'; ?>
        <?php include 'modules/product-relate-list.php'; ?>
        <?php include 'modules/product-samekind-list.php'; ?>
        <?php include 'modules/product-random-list.php'; ?>




        <?php include 'modules/message-book.php'; ?>







<!-- container,main-->
     </div>
</div>








<?php include 'modules/footer.php'; ?>

<!--分享插件-->
<!--<div class="addthis_inline_share_toolbox">分享到：</div>-->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-60a7700dcdfa4000"></script>
</body>

</html>
